package com.gh.pattern.proxy.jdk;

import com.gh.pattern.proxy.staticed.Person;

public class JDKProxyTest {
    public static void main(String[] args) {

        try {
            Person obj = (Person) new JDKHuangniu().getInstance(new Xiaowugui());
            System.out.println(obj.getClass());
            obj.buyTicket();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
